﻿#ifndef GENERATEREPORT_INSERTSCREENSHOTINTOREPORT_H
#define GENERATEREPORT_INSERTSCREENSHOTINTOREPORT_H

#include <QByteArray>
#include <QString>
#include <sal/types.h>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/io/XInputStream.hpp>
#include <com/sun/star/frame/Desktop.hpp>
using namespace com::sun::star::uno;
using namespace com::sun::star::frame;

namespace GenerateReport
{
    class insertScreenshotIntoReport
    {
    public:
        insertScreenshotIntoReport();
        //~insertScreenshotIntoReport() = default;

        void actionSlot_insertScreenshotIntoReport();

    private:
        /// @brief 从剪切板获取图片并保存到本地
        void getscreenshot();

    private:
        QString m_QImagePath{};
        int m_width{ 5000 };
        int m_height{ 5000 };

    };
}

#endif // GENERATEREPORT_CREATENEWREPORT_H
